import { Injectable } from '@nestjs/common'
import { InjectRepository } from '@nestjs/typeorm'
import { Repository } from 'typeorm'
import { CoreHelp } from './help.entity'
@Injectable()
export class HelpService {
  constructor(@InjectRepository(CoreHelp) public help: Repository<CoreHelp>) {}
  async getHelpList(type: string): Promise<CoreHelp[]> {
    return await this.help.find({
      type: type
    })
  }
}
